﻿// CMakeLearn1.cpp: 定义应用程序的入口点。
//

#include "CMakeLearn1.h"
#include <memory>

using namespace std;


Simple* CreateSimpleInstance()
{
	auto simple_ptr = std::make_shared<Simple>();
	return simple_ptr.get();
}

DeSimple* CreateDeSimpleInstance()
{
	auto desimple_ptr = std::make_shared<DeSimple>();
	return desimple_ptr.get();
}

int main()
{
	cout << "Hello CMake." << endl;
	Simple* simple = CreateSimpleInstance();
	DeSimple* desimple = CreateDeSimpleInstance();
	simple->Print();
	desimple->Print();
	return 0;
}

